<template>
	<view>
		<input v-model="account" placeholder="账号"/>
		<input v-model="password" placeholder="密码"/>
		<button @click="duqding" >注册</button>
	</view>
</template>

<script>
 
	export default {
		data() {
			return {
				formData: {
					mobile: "18420053587",
					code: "2222",
					captcha: "123456"
				},
				account:"18420053587",
				password:"",
			}
		},
		onLoad() {
			console.log(uni.getSystemInfoSync())
		},
		methods: {
			duqding(){
				 
				this.http('/api/register',{
					account:this.account,
					password:this.password,
				},'post').then(resv=>{
					setTimeout(()=>{
						uni.reLaunch({
							url:"/pages/login/index"
						})
					},300) 
				})
			}
		}
	}
</script>

<style>

</style>
